home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2373 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.iag.net!news
  2. From: jatmon@iag.net (John R Buchan)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Use of getch()...
  5. Date: 20 Jan 1996 22:03:34 GMT
  6. Organization: Internet Access Group, Orlando, Florida
  7. Message-ID: <4drorm$cr@news.iag.net>
  8. References: <4do95b$jio@klein.delphi.com>
  9. NNTP-Posting-Host: pm1-orl30.iag.net
  10. X-Newsreader: WinVN 0.99.7
  11.  
  12. In article <4do95b$jio@klein.delphi.com>, stucros@mci.newscorp.com says...
  13. ->
  14. ->I need to use the function getch() in a loop but I also need for a null
  15. ->character to be returned during each iteration if the user has not 
  16. ->entered a character. I need this so that the program will not stop and 
  17. ->wait for input at the point that I have getch() in the routine.  Is this 
  18. ->possible?
  19. ->Thanks
  20. ->Stu
  21. ->
  22.  
  23. getch() is not an ansi c function.  So, by strict definition, this should
  24. asked in a different group. However... I suspect you'll find kbhit() or
  25. something similar on your compiler.  It should do want you want.
  26.  
  27. -- 
  28. John R Buchan           -:|:-     Looking for that elusive FAQ?  ftp to:
  29. jatmon@mail.iag.net     -:|:-     rtfm.mit.edu /pub/usenet-by-group/....
  30.  
  31.